Introduction of Nagios
Nagios is an open source computer system and network monitoring tool, can effectively monitor Windows, Linux and UNIX host State, switch routers and other network settings, printers and so on. When the system or service status is abnormal, send an email or SMS alert the first time to notify the site operators, in the state of recovery afte
your Nagios server here:#only_from = 127.0.0.1 10.0.20.1 10.0.20.2# Don ' t be too verbose. Don ' t log every check. This might is# commented out for debugging. If This option was commented out# The default options would be a used for this service.Log_on_success =Disable = no}#only_from Join the monitoring side IP to ensure that the monitoring terminal can telnet to the monitored sideWindows underHttp://mathias-kettner.de/download/check-mk-
Monitor the number of opened files in the nagios Agent System
Vi check_open_file.c (for linux only)
#include
#include
#include
#define OK 0#define WARNING 1#define CRITICAL 2#define UNKNOWN 3#define LEN 1000#define FILE_NR "/proc/sys/fs/file-nr"int exitstatus=OK;char *exit_status[4]={"OK","WARNING","CRITICAL","UNKNOWN"};char status_information[LEN];char performance_data[LEN];int
completes the configuration on Windows Server 2008. Next we set up the Nagios monitoring server.
3.Nagios Monitor Server settingsVi/usr/local/nagios/etc/nagios.cfgSearch Find:# Definitions for monitoring a Windows machine# cfg_file=/usr/local/
Settings for Windows clients:
Download Address: Http://sourceforge.net/projects/nscplus
Nsclient++-0.3.8-win32.msi
Nsclient++-0.3.8-x64.msi
Install the same way as normal software installation
1. Double-click Install---"Next---" Agree
---"Next---" Next---"Next---" Set up to allow IP
Set Password (the password set here generally can not be set)
Modules to load the first three modules selected on the line
---"Next---" Install---"Finish
2. In t
Nagios monitors Windows hostsOne, edit the main configuration file for NagiosVi/usr/local/nagios/etc/nagios.cfgRemove the first # of the following line:#cfg_file =/usr/local/nagios/etc/objects/windows.cfgSave the configuration file and exit.Second, install the Windows
allow desktop and server interaction. Then click "application ".
Nsclient ++/start
Nsclient ++/stop
Edit nsclient ++/nsc. ini:
1. The comments in front of all modules in [modules] are removed except CheckWMI. dll and RemoteConfiguration. dll.
2. In the [Settings] section, set the 'Password' option to set the password, which is required when nagios is connected. We do not need a password here!
3. Remove the comment of the 'allowed _ hosts' option in t
Nagios Server: 192.168.5.203Windows is monitored end 192.168.5.208
Install the SNMP service under Windows Server2003 for exampleControl Panel---Add Remove Programs---Add remove Windows Components---tick management and monitoring tools---next---complete650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/49/C9/wKioL1QadmmgMMXxAADwo_FxpKs777.jpg "tit
Nagios itself does not provide the corresponding monitoring, it is to implement monitoring is dependent on the SNMP protocol or the relevant plug-in to complete the corresponding monitoring, and usually in order to deploy quickly and easily, on the Linux host generally more Nrpe extension, And on the Windows host on the use of more is the nsclient++ extension, the difference is Nrpe or through the plug-in t
One, the configuration of the monitored Windows XP client1. Install nsclient++ and install: Http://sourceforge.net/projects/nscplusNsclient++-0.3.8-win32.msiNsclient++-0.3.8-x64.msi2, Installation nsclient++Double-click Install---next----next to next---set Allow IP, set password (here the password can not be set in general), Modules to load (select the first three modules on it, the 2nd one for CHECT_NT for Window
Building a monitoring system based on Nagios -- monitoring remote Windows Server
After sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.
Part 1: configure the monitored Windows Server
First, visit http://sourceforge.net/projects/
Nagios monitoring Windows ServerRequirement: currently, the company has about 20 Windwos servers. Daily O M mainly relies on manual server status check: CPU/memory/disk usage, I/O, etc. We hope to deploy a monitoring system to integrate and collect all the above information on servers and implement the alarm function. Analysis: based on the actual situation, collect relevant information online. decided to
, such as the above installation When the password is set to 123456(2) Define the host# vim Hosts.cfgdefine host{use windows-server host_name win-192.168.11.105 alias My win server address 192.168.11.105}(3) Defining the service#viservices.cfgdefineservice{use generic-servicehost_name win-192.168.11.105 service_descriptionNSClient++Version check_command check_win! clientversion; The first parameter passed to the-v parameter }define service{use generi
parameter #-s to specify the password, if necessary add, such as the above installation When the password is set to 123456(2) Define the host# vim Hosts.cfgdefine host{use windows-server host_name win-192.168.11.105 alias My win server address 192.168.11.105}(3) Defining the service#viservices.cfgdefineservice{use generic-servicehost_name win-192.168.11.105 service_descriptionNSClient++Version check_command check_win! clientversion; The first parame
nagios is not monitored by default Windows Plug-in for network card traffic, but can be implemented through a third-party plug-in script. 1: Download the check_traffic.sh script and upload it to the/usr/local/nagios/libexec directory of the Nagios monitoring server.Official: Https://github.com/cloved/check_traffic2: Ex
I. Monitoring requirements:
Remote monitoring of custom TCP ports on Windows Servers
1. Linux machines are relatively simple. Use the check_tcp plug-in (the steps are omitted)
2. Windows machine, using the check_nt plug-in, check_nt for detailed usage see http://nagiosplugins.org/man/check_nt
A. First install nsclient ++
B. Edit
/Usr/local/Nagios/etc/objects/comm
After sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.
Part 1: configure the monitored Windows Server
First, visit http://sourceforge.net/projects/nscplus/and download the NSClinent ++ of the License Server. The file I downloaded was named: NSCP-0.4.1.73-Win32.msi
Double-click the installer, select Complete In
1.1 Windows Client Installation nsclient++Note: After installation, you will be prompted to allow those hosts listen to add Nagios-server hosts. After installation will provide a password, remember to save, server side will use.1.2 Enable cfg_file=/usr/local/nagios/etc/objects/windows.cfg in Nagios.cfg, if you need to monitor multiple
Sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.Part I: Configuring Windows servers to be monitoredFirst, visit http://sourceforge.net/projects/nscplus/and download the nsclinent++ that matches your server. After I download it, the file name is: Nscp-0.4.1.73-win32.msiDouble-click the installer, select Complete Insta
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.